package cn.itsource.pethome.system.menu.mapper;

import cn.itsource.pethome.system.menu.domain.Menu;
import cn.itsource.pethome.base.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xlh
 * @since 2023-02-01
 */
@Repository
public interface MenuMapper extends BaseMapper<Menu> {
    //根据id查询子类
    Long findByParentId(Long id);

    List<Long> findMenuByRole(List<Long> roles);
}
